using System;
using System.Collections;

namespace Eshouse.Entity
{
	

	/// <summary>
	/// DicTable object for NHibernate mapped table 'DicTable'.
	/// </summary>
	public class DicTable
	{
		#region Member Variables
		
		protected int _id;
		protected string _itemName;
		protected DicCode _dictid;
		protected IList _hSUseTypeHouseInfos;
		protected IList _hSRegionalHouseInfos;
		protected IList _hSReleasedStateHouseInfos;
		protected IList _hSInfoCategoryHouseInfos;
		protected IList _hSEstateCategoryHouseInfos;
		protected IList _hSDecorateHouseInfos;
		protected IList _hSTowardsHouseInfos;
		protected IList _hSSourceCategoryHouseInfos;
		protected IList _hSLeaseWayHouseInfos;
		protected IList _hSPaymentHouseInfos;
		protected IList _hSOwnershipHouseInfos;
		protected IList _infReleasedStateInformations;
		protected IList _infCategoryInformations;
		protected IList _regionPersonInfos;
		protected IList _picCategoryUpLoadPics;

		#endregion

		#region Constructors

		public DicTable() { }

		public DicTable( string itemName, DicCode dictid )
		{
			this._itemName = itemName;
			this._dictid = dictid;
		}

		#endregion

		#region Public Properties

		public virtual int Id
		{
			get {return _id;}
			set {_id = value;}
		}

		public virtual  string ItemName
		{
			get { return _itemName; }
			set
			{
				if ( value != null && value.Length > 64)
					throw new ArgumentOutOfRangeException(" Invalid value for ItemName", value, value.ToString());
				_itemName = value;
			}
		}

		public virtual DicCode dictid
		{
			get { return _dictid; }
			set { _dictid = value; }
		}

		public virtual IList HS_UseTypeHouseInfos
		{
			get
			{
				if (_hSUseTypeHouseInfos==null)
				{
					_hSUseTypeHouseInfos = new ArrayList();
				}
				return _hSUseTypeHouseInfos;
			}
			set { _hSUseTypeHouseInfos = value; }
		}

		public virtual IList HS_RegionalHouseInfos
		{
			get
			{
				if (_hSRegionalHouseInfos==null)
				{
					_hSRegionalHouseInfos = new ArrayList();
				}
				return _hSRegionalHouseInfos;
			}
			set { _hSRegionalHouseInfos = value; }
		}

		public virtual IList HS_ReleasedStateHouseInfos
		{
			get
			{
				if (_hSReleasedStateHouseInfos==null)
				{
					_hSReleasedStateHouseInfos = new ArrayList();
				}
				return _hSReleasedStateHouseInfos;
			}
			set { _hSReleasedStateHouseInfos = value; }
		}

		public virtual IList HS_InfoCategoryHouseInfos
		{
			get
			{
				if (_hSInfoCategoryHouseInfos==null)
				{
					_hSInfoCategoryHouseInfos = new ArrayList();
				}
				return _hSInfoCategoryHouseInfos;
			}
			set { _hSInfoCategoryHouseInfos = value; }
		}

		public virtual IList HS_EstateCategoryHouseInfos
		{
			get
			{
				if (_hSEstateCategoryHouseInfos==null)
				{
					_hSEstateCategoryHouseInfos = new ArrayList();
				}
				return _hSEstateCategoryHouseInfos;
			}
			set { _hSEstateCategoryHouseInfos = value; }
		}

		public virtual IList HS_DecorateHouseInfos
		{
			get
			{
				if (_hSDecorateHouseInfos==null)
				{
					_hSDecorateHouseInfos = new ArrayList();
				}
				return _hSDecorateHouseInfos;
			}
			set { _hSDecorateHouseInfos = value; }
		}

		public virtual IList HS_TowardsHouseInfos
		{
			get
			{
				if (_hSTowardsHouseInfos==null)
				{
					_hSTowardsHouseInfos = new ArrayList();
				}
				return _hSTowardsHouseInfos;
			}
			set { _hSTowardsHouseInfos = value; }
		}

		public virtual IList HS_SourceCategoryHouseInfos
		{
			get
			{
				if (_hSSourceCategoryHouseInfos==null)
				{
					_hSSourceCategoryHouseInfos = new ArrayList();
				}
				return _hSSourceCategoryHouseInfos;
			}
			set { _hSSourceCategoryHouseInfos = value; }
		}

		public virtual IList HS_LeaseWayHouseInfos
		{
			get
			{
				if (_hSLeaseWayHouseInfos==null)
				{
					_hSLeaseWayHouseInfos = new ArrayList();
				}
				return _hSLeaseWayHouseInfos;
			}
			set { _hSLeaseWayHouseInfos = value; }
		}

		public virtual IList HS_PaymentHouseInfos
		{
			get
			{
				if (_hSPaymentHouseInfos==null)
				{
					_hSPaymentHouseInfos = new ArrayList();
				}
				return _hSPaymentHouseInfos;
			}
			set { _hSPaymentHouseInfos = value; }
		}

		public virtual IList HS_OwnershipHouseInfos
		{
			get
			{
				if (_hSOwnershipHouseInfos==null)
				{
					_hSOwnershipHouseInfos = new ArrayList();
				}
				return _hSOwnershipHouseInfos;
			}
			set { _hSOwnershipHouseInfos = value; }
		}

		public virtual IList Inf_ReleasedStateInformations
		{
			get
			{
				if (_infReleasedStateInformations==null)
				{
					_infReleasedStateInformations = new ArrayList();
				}
				return _infReleasedStateInformations;
			}
			set { _infReleasedStateInformations = value; }
		}

		public virtual IList Inf_CategoryInformations
		{
			get
			{
				if (_infCategoryInformations==null)
				{
					_infCategoryInformations = new ArrayList();
				}
				return _infCategoryInformations;
			}
			set { _infCategoryInformations = value; }
		}

		public virtual IList regionPersonInfos
		{
			get
			{
				if (_regionPersonInfos==null)
				{
					_regionPersonInfos = new ArrayList();
				}
				return _regionPersonInfos;
			}
			set { _regionPersonInfos = value; }
		}

		public virtual IList Pic_CategoryUpLoadPics
		{
			get
			{
				if (_picCategoryUpLoadPics==null)
				{
					_picCategoryUpLoadPics = new ArrayList();
				}
				return _picCategoryUpLoadPics;
			}
			set { _picCategoryUpLoadPics = value; }
		}

		

		#endregion
	}
	
}